package fr.form.synthese;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import fr.form.Application;

public class SyntheseEcranParticipations {

	private Integer idApp;

	private Map<Integer, Integer> mapStatuts;
	private Map<Integer, String> mapLibelle;
	private Map<Integer, String> mapLien ;
	private Map<Integer, BigDecimal> mapMontant;
	private Map<Integer, String> mapLogo ;
	private Integer statutRecherche;

	private String logoNew;
	private String lienNew;
	private String libelleNew;
	private BigDecimal montantNew;
	private Integer statutNew;

	
	public SyntheseEcranParticipations(){
		mapStatuts = new HashMap<Integer, Integer>();
		mapLibelle = new HashMap<Integer, String>();
		mapLien = new HashMap<Integer, String>();
		mapMontant = new HashMap<Integer, BigDecimal>();
		mapLogo = new HashMap<Integer, String>();
		statutRecherche = 0;
	}
	
	public SyntheseEcranParticipations(List<Application> pApps){
		for(Application app:pApps){
			mapStatuts.put(app.getId(),app.getStatutApplication());
		}
	}
	
	public Map<Integer, Integer> getMapStatuts() {
		return mapStatuts;
	}

	public void setMapStatuts(Map<Integer, Integer> pMapStatuts) {
		this.mapStatuts = pMapStatuts;
	}
	
	public void setMapStatutsFromApp(List<Application> pApps) {
		for(Application app:pApps){
			this.mapStatuts.put(app.getId(),app.getStatutApplication());
		}
	}

	public Map<Integer, String> getMapLibelle() {
		return mapLibelle;
	}

	public void setMapLibelle(Map<Integer, String> pMapLibelle) {
		this.mapLibelle = pMapLibelle;
	}

	public void setMapLibelleFromApp(List<Application> pApps) {
		for(Application app:pApps){
			this.mapLibelle.put(app.getId(),app.getLibelle());
		}
	}

	public Map<Integer, String> getMapLien() {
		return mapLien;
	}

	public void setMapLien(Map<Integer, String> pMapLien) {
		this.mapLien = pMapLien;
	}
	
	public void setMapLienFromApp(List<Application> pApps) {
		for(Application app:pApps){
			this.mapLien.put(app.getId(),app.getLien());
		}
	}

	public Map<Integer, BigDecimal> getMapMontant() {
		return mapMontant;
	}

	public void setMapMontant(Map<Integer, BigDecimal> pMapMontant) {
		this.mapMontant = pMapMontant;
	}

	public void setMapMontantFromApp(List<Application> pApps) {
		for(Application app:pApps){
			this.mapMontant.put(app.getId(),app.getMontant());
		}
	}

	public Map<Integer, String> getMapLogo() {
		return mapLogo;
	}

	public void setMapLogo(Map<Integer, String> pMapLogo) {
		this.mapLogo = pMapLogo;
	}

	
	public void setMapLogoFromApp(List<Application> pApps) {
		for(Application app:pApps){
			this.mapLogo.put(app.getId(),app.getImage());
		}
	}

	public Integer getStatutRecherche() {
		return statutRecherche;
	}

	public void setStatutRecherche(Integer pStatutRecherche) {
		this.statutRecherche = pStatutRecherche;
	}

	public String getLogoNew() {
		return logoNew;
	}

	public void setLogoNew(String pLogoNew) {
		this.logoNew = pLogoNew;
	}

	public String getLienNew() {
		return lienNew;
	}

	public void setLienNew(String pLienNew) {
		this.lienNew = pLienNew;
	}

	public String getLibelleNew() {
		return libelleNew;
	}

	public void setLibelleNew(String pLibelleNew) {
		this.libelleNew = pLibelleNew;
	}

	public BigDecimal getMontantNew() {
		return montantNew;
	}

	public void setMontantNew(BigDecimal pMontantNew) {
		this.montantNew = pMontantNew;
	}

	public Integer getStatutNew() {
		return statutNew;
	}

	public void setStatutNew(Integer pStatutNew) {
		this.statutNew = pStatutNew;
	}

	public Integer getIdApp() {
		return idApp;
	}

	public void setIdApp(Integer pIdApp) {
		this.idApp = pIdApp;
	}

	
	
}
